package com.jerry.spring.security.jwt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jerry.spring.security.jwt.domain.entity.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 菜单
 *
 * @author jerry 2024/5/27 20:07
 */
public interface MenuMapper extends BaseMapper<Menu> {

    /**
     * 根据用户id查询所有权限
     *
     * @param userId
     * @return
     */
    List<String> selectPermsByUserId(@Param("userId") Long userId);
}
